﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OAuthAccess
{
    /// <summary>
    /// Represents TokenResponse(Token and AdditonalParameters) when you get Token with OAuthAuthorizationService.
    /// </summary>
    public class TokenResponse
    {
        internal TokenResponse(TokenBase token, IEnumerable<Parameter> paras)
        {
            Token = token;
            AdditionalParameters = paras;
        }

        /// <summary>
        /// Represents of Token(AccessToken or RequestToken)
        /// </summary>
        public TokenBase Token
        {
            get;
            private set;
        }

        /// <summary>
        /// Represents of AdditionalParameters
        /// </summary>
        public IEnumerable<Parameter> AdditionalParameters
        {
            get;
            private set;
        }
    }
}
